From: Florian Müllner Date: Thu, 30 Jan 2020 00:28:02 +0000 (+0100) Subject: extensionPrefs: Scroll with key focus X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=db85e7084cd02c8a168158d4d06c246bf6476b9c;p=gnome-shell.git extensionPrefs: Scroll with key focus Currently when the extensions list is scrolled, it is possible to keynav out of view, as the scrolling doesn't follow the key focus. Hook up the adjustment to fix that. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1968 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 55172fb54..74292957e 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -70,7 +70,9 @@ var ExtensionsWindow = GObject.registerClass({ InternalChildren: [ 'extensionsList', 'killSwitch', + 'mainBox', 'mainStack', + 'scrolledWindow', ], }, class ExtensionsWindow extends Gtk.ApplicationWindow { _init(params) { @@ -80,6 +82,8 @@ var ExtensionsWindow = GObject.registerClass({ this._loaded = false; this._prefsDialog = null; + this._mainBox.set_focus_vadjustment(this._scrolledWindow.vadjustment); + this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell' }); this._settings.bind('disable-user-extensions', this._killSwitch, 'active', diff --git a/js/extensionPrefs/ui/extensions-window.ui b/js/extensionPrefs/ui/extensions-window.ui index 8c235f4a0..7305a03ee 100644 --- a/js/extensionPrefs/ui/extensions-window.ui +++ b/js/extensionPrefs/ui/extensions-window.ui @@ -25,14 +25,14 @@ True crossfade - + True never True - + True vertical center